package designPattern.BridgePattern.p1;

/**
 * 桥接
 */
public class Test {
    public static void main(String[] args) {
        //苹果笔记本
        Computer computer = new LapTop(new Apple());
        computer.info();

        //联想台式机
        Computer computer1 = new DestTop(new Lenovo());
        computer1.info();

        AbsPhone phone = new SmartPhone(new Apple(), new Iphone12Version(), new IOSSystem());
        phone.info();
    }
}